#include <iostream>
#include <vector>

using namespace std;

int main()
{
    vector<vector<int>> vct;
    vector<int> vct2;

    for(int i = 1; i <= 9; ++i){
        vct2.push_back(i);
    }
    
    for(int i = 0; i < 9; ++i){
        vct.push_back(vct2);
    }

    int num = 1;
    for(auto i : vct){
        for(auto j : i){
            if(j <= num){
                cout << num << " X " << j << " = " << num * j << "  ";
            }
        }

        cout << endl;

        num++;
    }

    return 0;
}

